using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
    // Start is called before the first frame update
    private static GameManager _ins;
    public static GameManager Ins { get { return _ins; } }

    public int goldnum=0;

    private void Start()
    {
        AudioMgr.Instance.PlayGameBgm(AudioBgmType.BGM02);
        if (!_ins)
        {
            _ins = this;
        }
    }
    public void SetInitialGold(int num)
    {
        goldnum = num;
    }
    public void AddGoldNum(int num)
    {
        goldnum += num;
    }
    public void ReduceGoldNum(int num)
    {
        goldnum -= num;
    }
    public int GetGoldNum()
    {
        return goldnum;
    }
}
